﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="BuXiaChu.OrderDishes.Web.Admin.Employees.Add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register TagPrefix="Menu" TagName="Header" Src="~/Modules/Menu/Header.ascx" %>
<%@ Register TagPrefix="Menu" TagName="Footer" Src="~/Modules/Menu/Footer.ascx" %>
<%@ Register TagPrefix="Menu" TagName="InfoLeft" Src="~/Modules/Menu/InfoLeft.ascx" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link media="screen, projection" rel="stylesheet" type="text/css" href="/css/Blueprint/screen.css" />
    <link media="screen, projection" rel="stylesheet" type="text/css" href="/css/main.css" />

    <script type="text/javascript" src="../js/Extend.js"></script>

    <script type="text/javascript" src="../js/Common.js"></script>

    <script type="text/javascript" src="../js/jquery-vsdoc.js"></script>

</head>
<body>
    <div class="container">
        <Menu:Header ID="Header1" runat="server" />
        <form id="form1" runat="server">
        <Menu:InfoLeft ID="menu_InfoLeft" runat="server" />
        <div class="span-20 last">
            <div class="boxc">
                <a href="Index.aspx">员工管理</a>
            </div>
            <div class="editor-content">
                <div class="editor-label">
                </div>
                <div class="editor-field">
                    <span class="notice">*</span>是必填项
                </div>
                <div class="editor-label">
                    <span class="notice">*</span> 姓名：
                </div>
                <div class="editor-field">
                    <input type="text" id="txt_Name" runat="server" />
                </div>
                <div class="editor-label">
                    <span class="notice">*</span>性别：
                </div>
                <div class="editor-field">
                    <select runat="server" id="sel_Gender">
                    </select>
                </div>
                <div class="editor-label">
                    <span class="notice">*</span>所在城市：
                </div>
                <div class="editor-field">
                    <select runat="server" id="sel_City">
                    </select>
                </div>
                <div class="editor-label">
                    所在地区：
                </div>
                <div class="editor-field">
                    <select runat="server" id="sel_Area">
                    </select>
                    <input type="hidden" value="-1" runat="server" id="txt_AreaId" />
                </div>
                <div class="editor-label">
                    所属服务站：
                </div>
                <div class="editor-field">
                    <select runat="server" id="sel_ServiceStation">
                    </select>
                </div>
                <div class="editor-label">
                    <span class="notice">*</span>职称：
                </div>
                <div class="editor-field">
                    <select runat="server" id="sel_JobTitle">
                    </select>
                </div>
                <div class="editor-label">
                    <span class="notice">*</span>手机：
                </div>
                <div class="editor-field">
                    <input type="text" id="txt_Mobile" runat="server" />
                </div>
                <div class="editor-label">
                    备注：
                </div>
                <div class="editor-field">
                    <textarea runat="server" style="width: 300px; height: 80px;" id="txt_Comment"></textarea>
                </div>
                <div class="editor-label">
                </div>
                <div class="editor-field">
                    <input type="submit" id="btn_Save" value="保存" />
                </div>
            </div>
        </div>
        </form>
        <Menu:Footer ID="Footer1" runat="server" />
    </div>
</body>
</html>

<script type="text/javascript" src="../js/FormValid.js"></script>

<script type="text/javascript">
    (function() {
        fillAreaList();
        $(jDoc("sel_Area")).bind("change", function() {
            jDoc("txt_AreaId").value = this.options[this.selectedIndex].value;
        })
        ElementValidator.className.error = "error";
        var formValidator = new ElementValidator();
        formValidator.addText({ id: "txt_Name", focus: "请输入姓名", defTips: "姓名必填", len: { text: /^.{2,20}$/, errorMsg: "姓名需要2-20个字"} });
        formValidator.addText({ id: "txt_Mobile", len: { text: RegValidator.RegTextEnum.mobile, errorMsg: "手机号填写错误"} });
        $(jDoc("btn_Save")).bind("click", function() {
            return formValidator.validate();
        })
    })();
</script>

<script type="text/javascript">

(function(){
    switch(<%=saveStatus %>){
        case 1:alert("操作成功");break;
        case 0:alert("操作失败");break;
        default:break;
    }
})();
</script>

